# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=alpine-zsh-config
pkgver=0.4.1
pkgrel=0
pkgdesc="A sensible default configuration for Zsh"
url="https://github.com/jirutka/alpine-zsh-config"
arch="noarch"
license="MIT"
depends="tty-copy>=0.2.0 zsh>=5.8.1-r1"
source="https://github.com/jirutka/alpine-zsh-config/archive/v$pkgver/alpine-zsh-config-$pkgver.tar.gz"

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install

	install -D -m644 /dev/stdin "$pkgdir"/usr/share/zsh/scripts/newuser <<-EOF
	# The purpose of this empty file is to disable that obstructive newuser setup
	# wizard (zsh/newuser module). It has been installed by $pkgname package.
	EOF
}

sha512sums="
c40576a1d54d07cb2f657b29977c657facfe502fe3a1fa609ff0ba7b5938538652b4e153a8ba4d95f17b3f2cc1a1613f049878140f92b91a2d8e58e4f96e64ad  alpine-zsh-config-0.4.1.tar.gz
"
